package com.yq.ylmall.enums.product;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ProductStatus {

    INIT(0, "未上架"),
    SHELVES(1, "已上架"),
    SELF_SHELVES(2, "自主下架");

    @EnumValue
    @JsonValue
    private final Integer status;

    private final String desc;

}
